package edu.gxnu.cetcdemo.controller;

import edu.gxnu.cetcdemo.pojo.SuAdmin;
import edu.gxnu.cetcdemo.service.SuAdminService;
import edu.gxnu.cetcdemo.utils.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/suadmin")
public class SuAdminController {
    @Autowired
    private SuAdminService suAdminService;

    @ApiOperation("超级管理员登录接口")
    @PostMapping("/login")
    public Result login(@RequestBody SuAdmin suAdmin){
        return suAdminService.login(suAdmin);
    }

}
